home *** CD-ROM | disk | FTP | other *** search
/ Aminet 19 / Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso / Aminet / game / patch / Z2Install.lha / Z2Install / Install_Zeewolf_2 next >
Text File  |  1997-03-09  |  5KB  |  212 lines

  1. ;
  2. ;$VER: Zeewolf 2 HD Installer script v1.07 (c) 1996-1997 John Girvin
  3. ;
  4.  
  5. (welcome "Welcome to the Zeewolf 2 Hard Drive Installer")
  6. (set @app-name (cat "Zeewolf_2_HD"))
  7. (set #ZROOTDIR "DH0:")
  8. (set #ZDESTDIR #ZDESTDIR)
  9. (set #ZMDRET 0)
  10.  
  11. (set #ZSRCDRIVE 0)
  12. (set #ZUSEGUI 0)
  13. (set #ZDEFTRAINERS 0)
  14. (set #ZSTARTMISSION 1)
  15.  
  16. (if
  17.     (<> @user-level 2)
  18.     (abort "You must select 'Expert' user level")
  19. )
  20.  
  21. (message "\n\nWelcome to the Zeewolf 2 Hard Drive Installer\n"
  22.          "(c) 1996-1997 John Girvin\n\n"
  23.          "Please read the documentation thoroughly before"
  24.          " attempting to use this installer!\n\n"
  25.          "This is version 1.07\n\n"
  26.          "Click 'Proceed' to begin."
  27. )
  28.  
  29. (set #ZROOTDIR
  30.     (askdir
  31.         (prompt "Where would you like Zeewolf 2 installed?\n"
  32.                 "(a new drawer called 'Zeewolf2' will be created here)"
  33.         )
  34.         (help @askdir-help)
  35.         (default "DH0:")
  36.     )
  37. )
  38. (set #ZDESTDIR (tackon #ZROOTDIR "Zeewolf2/"))
  39. (set @default-dest #ZDESTDIR)
  40. (set #ZDATFILE (tackon #ZDESTDIR "Zeewolf2.dat"))
  41.  
  42. (set #ZSRCDRIVE
  43.     (askchoice
  44.         (prompt "Which drive do you wish to install from?")
  45.         (help @askchoice-help)
  46.         (choices "DF0:" "DF1:" "DF2:" "DF3:")
  47.         (default #ZSRCDRIVE)
  48.     )
  49. )
  50.  
  51. (set #ZUSEGUI
  52.     (askchoice
  53.         (prompt "Do you want the cheat GUI to appear every time you load Zeewolf2_HD?\n"
  54.                 "(this may be changed later by editing the tooltypes of Zeewolf2_HD)"
  55.         )
  56.         (help @askchoice-help)
  57.         (choices "Yes" "No")
  58.         (default #ZUSEGUI)
  59.     )
  60. )
  61.  
  62. (set #ZDEFTRAINERS
  63.     (askoptions
  64.         (prompt "Please select the default trainers to use:\n"
  65.                 "(these may be changed later by either\n"
  66.                 "editing the tooltypes of Zeewolf2_HD\n"
  67.                 "or using the cheat GUI)"
  68.         )
  69.         (help @askoptions-help)
  70.         (choices "Infinite lives"    "Infinite armor"    "Infinite cannon"
  71.                  "Infinite rockets" "Infinite AAMs"        "Infinite fuel"
  72.         )
  73.         (default #ZDEFTRAINERS)
  74.     )
  75. )
  76.  
  77. (set #ZSTARTMISSION
  78.     (asknumber
  79.         (prompt "Please enter the default starting mission to use:\n"
  80.                 "(this may be changed later by either\n"
  81.                 "editing the tooltypes of Zeewolf2_HD\n"
  82.                 "or using the cheat GUI)"
  83.         )
  84.         (help @asknumber-help)
  85.         (range 1 32)
  86.         (default #ZSTARTMISSION)
  87.     )
  88. )
  89.  
  90. (makedir #ZDESTDIR
  91.     (prompt "I will now create the directory '" #ZDESTDIR "'")
  92.     (help @makedir-help)
  93.     (infos)
  94.     (confirm)
  95. )
  96.  
  97. (message "\n\n\nPlease insert your Zeewolf 2 game disk in drive DF"
  98.            #ZSRCDRIVE
  99.          ":\n\n"
  100.          "Click 'Proceed' when disk has been inserted and"
  101.          " disk activity has stopped."
  102. )
  103.  
  104. (working "Creating disk image in '" #ZDATFILE "'")
  105. (set #ZMDRET  (run (cat "Z2MakeDat " #ZSRCDRIVE " " #ZDATFILE)))
  106.  
  107. (if (<> #ZMDRET 0)
  108.     (abort (cat "Could not create disk image!\n\nError: " #ZMDRET))
  109. )
  110.  
  111. (copyfiles
  112.     (prompt "Copying HD drawer icon")
  113.     (help @copyfiles-help)
  114.     (source "Zeewolf2_icon")
  115.     (newname "Zeewolf2.info")
  116.     (dest #ZROOTDIR)
  117.     (nogauge)
  118.     (optional fail force)
  119. )
  120.  
  121. (copyfiles
  122.     (prompt "Copying trainer program")
  123.     (help @copyfiles-help)
  124.     (source "Zeewolf2_HD")
  125.     (dest #ZDESTDIR)
  126.     (nogauge)
  127.     (noposition)
  128.     (optional fail force)
  129. )
  130.  
  131. (copyfiles
  132.     (prompt "Copying trainer program icon")
  133.     (help @copyfiles-help)
  134.     (source "Zeewolf2_HD_icon")
  135.     (newname "Zeewolf2_HD.info")
  136.     (dest #ZDESTDIR)
  137.     (nogauge)
  138.     (optional fail force)
  139. )
  140.  
  141. (tooltype
  142.     (prompt "Setting trainer program icon tooltypes")
  143.     (dest (cat #ZDESTDIR "Zeewolf2_HD"))
  144.     (settooltype "START_MISSION" (cat #ZSTARTMISSION))
  145. )
  146.  
  147. (if (= #ZUSEGUI 1)
  148.     (tooltype
  149.         (prompt "Setting trainer program icon tooltypes")
  150.         (dest (cat #ZDESTDIR "Zeewolf2_HD"))
  151.         (settooltype "NOGUI" "")
  152.     )
  153. )
  154.  
  155. (if (<> 0 (IN #ZDEFTRAINERS 0))
  156.     (tooltype
  157.         (prompt "Setting trainer program icon tooltypes")
  158.         (dest (cat #ZDESTDIR "Zeewolf2_HD"))
  159.         (settooltype "INF_LIVES" "")
  160.     )
  161. )
  162.  
  163. (if (<> 0 (IN #ZDEFTRAINERS 1))
  164.     (tooltype
  165.         (prompt "Setting trainer program icon tooltypes")
  166.         (dest (cat #ZDESTDIR "Zeewolf2_HD"))
  167.         (settooltype "INF_ARMOR" "")
  168.     )
  169. )
  170.  
  171. (if (<> 0 (IN #ZDEFTRAINERS 2))
  172.     (tooltype
  173.         (prompt "Setting trainer program icon tooltypes")
  174.         (dest (cat #ZDESTDIR "Zeewolf2_HD"))
  175.         (settooltype "INF_CANNON" "")
  176.     )
  177. )
  178.  
  179. (if (<> 0 (IN #ZDEFTRAINERS 3))
  180.     (tooltype
  181.         (prompt "Setting trainer program icon tooltypes")
  182.         (dest (cat #ZDESTDIR "Zeewolf2_HD"))
  183.         (settooltype "INF_ROCKET" "")
  184.     )
  185. )
  186.  
  187. (if (<> 0 (IN #ZDEFTRAINERS 4))
  188.     (tooltype
  189.         (prompt "Setting trainer program icon tooltypes")
  190.         (dest (cat #ZDESTDIR "Zeewolf2_HD"))
  191.         (settooltype "INF_AAM" "")
  192.     )
  193. )
  194.  
  195. (if (<> 0 (IN #ZDEFTRAINERS 5))
  196.     (tooltype
  197.         (prompt "Setting trainer program icon tooltypes")
  198.         (dest (cat #ZDESTDIR "Zeewolf2_HD"))
  199.         (settooltype "INF_FUEL" "")
  200.     )
  201. )
  202.  
  203. (copyfiles
  204.     (prompt "Copying HD loader")
  205.     (help @copyfiles-help)
  206.     (source "Z2Boot")
  207.     (dest #ZDESTDIR)
  208.     (nogauge)
  209.     (noposition)
  210.     (optional fail force)
  211. )
  212.